import { Define, EntityObjectFactory } from 'tiny-entity2';
import { Page } from './page';
const EntityObjectType = EntityObjectFactory.GetEntityObjectType(process.env.dataBaseType || 'mysql');
@Define.Table({ TableName: "orgpageitem" })
export class OrgPageItem extends EntityObjectType<OrgPageItem>{
    @Define.PrimaryKey()
    id: string;

    @Define.Column({
        DataType: Define.DataType.VARCHAR,
        IsIndex: true
    })
    orgId: string;

    @Define.Column({
        DataType: Define.DataType.VARCHAR,
        IsIndex: true
    })
    pageId: string;

    @Define.Mapping({
        Mapping: 'Page',
        MappingKey: 'id'
    })
    page: Page;

}